package com.goods.Service;

import com.github.pagehelper.PageInfo;
import com.goods.Pojo.Goods;

import java.util.List;

public interface GoodsService {
    void AddGoods(Goods goods);

    void UpdateGoods(Goods goods);

    PageInfo<Goods> SearchGoods(Integer pageNum, Integer pageSize, String goodsName, String factory);

    void DelGoods(Integer id);

    Goods getByid(Integer id);

    List<Goods> searchlist();
}
